﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Component;

public partial class Ajax : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string control = QueryHelper.GetQueryString(Request, ConstString._Menu);
        LoadControl1212(control);
    }
    void LoadControl1212(string control)
    {
       
        switch (control)
        {
            case ConstString._AjaxIntroduction:
                {
                    this.pnLoadControl.Controls.Clear();
                    this.pnLoadControl.Controls.Add(Page.LoadControl(Component.ConstString._AjaxPathIntroduction));
                    break;
                }
            case ConstString._AjaxProduct:
                {
                    this.pnLoadControl.Controls.Clear();
                    this.pnLoadControl.Controls.Add(Page.LoadControl(Component.ConstString._AjaxPathProduct));
                    break;
                }
            case ConstString._AjaxEvent:
                {
                    this.pnLoadControl.Controls.Clear();
                    this.pnLoadControl.Controls.Add(Page.LoadControl(Component.ConstString._AjaxPathEvent));
                    break;
                }
            case ConstString._AjaxService:
                {
                    this.pnLoadControl.Controls.Clear();
                    this.pnLoadControl.Controls.Add(Page.LoadControl(Component.ConstString._AjaxPathService));
                    break;
                }
            case ConstString._AjaxSearch:
                {
                    this.pnLoadControl.Controls.Clear();
                    this.pnLoadControl.Controls.Add(Page.LoadControl(Component.ConstString._AjaxPathSearch));
                    break;
                }
         
            default:
                {
                    this.pnLoadControl.Controls.Clear();
                    this.pnLoadControl.Controls.Add(Page.LoadControl(Component.ConstString._AjaxPathIntroduction));
                    break;
                }
        }
    }
  
}
